#!/bin/sh -e
## 03_fix_ld_conf.dpatch by Sylvain Le Gall <gildor@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -lt 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
diff -urNad /mnt/nfs0/gildor/deb/ocaml-package/camlimages/camlimages-2.11/Makefile camlimages-2.11/Makefile
--- /mnt/nfs0/gildor/deb/ocaml-package/camlimages/camlimages-2.11/Makefile	2003-01-24 11:44:01.000000000 +0100
+++ camlimages-2.11/Makefile	2004-01-14 17:21:55.000000000 +0100
@@ -62,10 +62,6 @@
 
 install:
 	mkdir -p $(LIBDIR)
-	if test -w $(CAMLDIR)/ld.conf \
-        && test `grep -s -c '^$(LIBDIR)$$' $(CAMLDIR)/ld.conf` = 0; then \
-	    echo $(LIBDIR) >> $(CAMLDIR)/ld.conf; \
-	fi
 	for i in $(BUILDDIRS); do (cd $$i; $(MAKE) install) || exit $$?; done
 	cp Makefile.config $(LIBDIR)
 	cp config.h $(LIBDIR)
